import { S } from '../../s';
import { IPSAppDEField } from '../../app/dataentity/ipsapp-defield';
import { IPSDEListDataItem } from './ipsdelist-data-item';
import { PSListDataItemImpl } from './pslist-data-item-impl';

export class PSDEListDataItemImpl
  extends PSListDataItemImpl
  implements IPSDEListDataItem
{
  protected psappdefield: IPSAppDEField;
  getPSAppDEField(): IPSAppDEField | null {
    return (
      this.psappdefield ||
      (this.psappdefield = this.fillObjectModel(
        S._1,
        this.M.getPSAppDEField,
        S._2e4,
      ) as IPSAppDEField)
    );
  }
  get cls(): string {
    return 'PSDEListDataItemImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._291) return true;
    return super.instanceof(cls);
  }
}
